Shutdown scripts¶
Define scripts that are executed on machine power off. Those scripts are ordered, one by line, and relative to SYSVOL/ubuntu/scripts/ directory. Scripts from this GPO will be appended to the list of scripts referenced higher in the GPO hierarchy.
Type: scripts
Key: /shutdown
Note: -
Enabled: The scripts in the text entry are executed at shutdown time.
Disabled: The scripts will be skipped. The set of scripts are per boot, and refreshed only on new boot of the machine.
Supported on Ubuntu 20.04, 22.04, 24.04, 24.10.
An Ubuntu Pro subscription on the client is required to apply this policy.
Metadata
Element |
Value |
---|---|
Location |
Computer Policies -> Ubuntu -> Client management -> Computer Scripts -> Shutdown scripts |
Registry Key |
Software\Policies\Ubuntu\scripts\shutdown |
Element type |
multiText |
Class: |
Machine |